#!/bin/bash

PRJ=downit
WindowsZip=7z
UnixZip=zip
OSystem=`uname -o`

cd src
rm -f ../bin/${PRJ}.xpi
if [[ "$OSystem" == "Cygwin" ]] ; then
    $WindowsZip a -r -w ../bin/${PRJ}.xpi *
else
    $UnixZip -r ../bin/${PRJ}.xpi *
fi
cd ../

